//
//  HomeTableViewController.swift
//  sinaWeibo
//
//  Created by apple on 15/11/9.
//  Copyright © 2015年 apple. All rights reserved.
//

import UIKit
import AFNetworking
import SVProgressHUD


class HomeTableViewController: BaseTableViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        VistorLoginViewVC?.setupUIInfo(nil, title: "关注一些人，看看发生了什么事")
        
        test()
        
    }
    
    func test(){
        let AFN = AFHTTPSessionManager()
        SVProgressHUD.show()
        //支持数据格式的文本类型
        AFN.responseSerializer.acceptableContentTypes?.insert("text/html")
        AFN.GET("http://www.weather.com.cn/data/sk/101010100.html", parameters: nil, success: { (task , resulk) -> Void in
            
            SVProgressHUD.dismiss()
            
           
            }) { (_, error) -> Void in
                
                SVProgressHUD.showErrorWithStatus("网络连接错误")
                
                print(error)
        }

    
    }
    
}
